Skip to content

Linter: Allow application/ld+json for html-allowed-script-type rule#1844

Merged
marcoroth merged 1 commit into
marcoroth:mainfrom
xymbol:allowed-script-type-data-blocks
Jul 8, 2026
Merged

Linter: Allow application/ld+json for html-allowed-script-type rule#1844
marcoroth merged 1 commit into
marcoroth:mainfrom
xymbol:allowed-script-type-data-blocks

Conversation

@xymbol

@xymbol xymbol commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

application/ld+json is the standard mechanism for embedding JSON-LD structured data, and the HTML specification treats it as an inert data block. Same fix as #1393 / #1413 made for module and importmap.

https://html.spec.whatwg.org/multipage/scripting.html#data-block

@github-actions github-actions Bot added documentation Improvements or additions to documentation linter typescript linter-rule labels Jul 8, 2026

@marcoroth marcoroth left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch, thank you @xymbol! 🙏🏼

@marcoroth marcoroth merged commit 7935fa7 into marcoroth:main Jul 8, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation linter linter-rule typescript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants